package com.example.resourceSharingPlatform.service;

import com.example.resourceSharingPlatform.dao.User_transDao;
import com.example.resourceSharingPlatform.entity.User_trans;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class User_transService {
    @Autowired
    private User_transDao user_transDao;

    public List<User_trans> queryTransByUserID(String id){
        return user_transDao.queryTransByUserID(id);
    }

    public boolean deleteTransById(int id){
        return  user_transDao.deleteTransById(id);
    }

    public User_trans insertTrans(User_trans user_trans){
        return user_transDao.insertTrans(user_trans);
    }
}
